package com.dhnsoft.shortLink.project.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dhnsoft.shortLink.project.dao.entity.ShortLinkDO;
import com.dhnsoft.shortLink.project.dto.req.RecycleBinRecoverDTO;
import com.dhnsoft.shortLink.project.dto.req.RecycleBinRemoveDTO;
import com.dhnsoft.shortLink.project.dto.req.RecycleBinSaveDTO;
import com.dhnsoft.shortLink.project.dto.req.ShortLinkRecycleBinPageReqDTO;
import com.dhnsoft.shortLink.project.dto.resp.ShortLinkPageRespDTO;

/**
 * ClassName: RecycleBinService
 * Package: com.dhnsoft.shortLink.project.service
 * Description:
 *
 * @Author dhn
 * @Create 2024/4/1 10:48
 * @Version 1.0
 */
public interface RecycleBinService extends IService<ShortLinkDO> {

    /**
     * 将短链接移入回收站
     * @param requestParam 传入gid和完整短链接
     */
    void saveRecycleBin(RecycleBinSaveDTO requestParam);


    /**
     * 分页查询回收站中得短链接
     * @param requestParam 传入gid和完整短链接
     * @return
     */
    IPage<ShortLinkPageRespDTO> pageRecycleBin(ShortLinkRecycleBinPageReqDTO requestParam);


    /**
     * 回收站短链接恢复功能
     * @param requestParam 传入gid和完整短链接
     */
    void recoverRecycleBin(RecycleBinRecoverDTO requestParam);


    /**
     * 回收站短链接移除功能
     * @param requestParam 传入gid和完整短链接
     */
    void removeRecycleBin(RecycleBinRemoveDTO requestParam);
}
